package com.shfl.servermanage.logic.mapper;

import com.shfl.servermanage.logic.bean.SysSiteConfig;
import com.shfl.servermanage.logic.model.response.SiteConfigPageResponse;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface SysSiteConfigMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SysSiteConfig record);

    int insertSelective(SysSiteConfig record);

    SysSiteConfig selectByPrimaryKey(Long id);

    SysSiteConfig selectByPrimaryKeyWithLogicalDelete(@Param("id") Long id, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByPrimaryKeySelective(SysSiteConfig record);

    int updateByPrimaryKey(SysSiteConfig record);

    int batchInsert(@Param("list") java.util.List<SysSiteConfig> list);

    int batchInsertSelective(@Param("list") java.util.List<SysSiteConfig> list, @Param("selective") SysSiteConfig.Column... selective);

    int logicalDeleteByPrimaryKey(Long id);

    List<SiteConfigPageResponse> findPage(Map<String, Object> objectMap);

    List<SiteConfigPageResponse> findList(Map<String, Object> objectMap);
}